import pytest

from page.app import App
from page.base_data import data_file


class Testmain:
    def setup(self):
        self.app = App()

    @pytest.mark.parametrize('args', data_file())
    def test_login(self,args):
        uname = args['uname']
        pwd = args['pwd']
        self.app.start().main().goto_login().login(uname,pwd)